import request from '@/util/request';
import type { LoginUser } from '@/model/System';

export const getLoginUser = (): Promise<LoginUser> => {
  return request<LoginUser>({
    url: '/auth/user',
    method: 'get',
  });
};

export const destorySession = () => {
  return request({
    url: '/auth/logout',
    method: 'get',
  });
};
